from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('tushare_data', '0002_alter_dataupdaterecord_data_type_dailybasic'),
    ]

    operations = [
        # 为DailyData表添加索引
        migrations.AddIndex(
            model_name='dailydata',
            index=models.Index(fields=['ts_code'], name='daily_ts_code_idx'),
        ),
        migrations.AddIndex(
            model_name='dailydata',
            index=models.Index(fields=['trade_date'], name='daily_trade_date_idx'),
        ),
        
        # 为DailyBasic表添加索引
        migrations.AddIndex(
            model_name='dailybasic',
            index=models.Index(fields=['ts_code'], name='basic_ts_code_idx'),
        ),
        migrations.AddIndex(
            model_name='dailybasic',
            index=models.Index(fields=['trade_date'], name='basic_trade_date_idx'),
        ),
    ]